<template>
  <component :is="componentId" :data="data"></component>
</template>

<script>
import VerticalView from './verticalView'
import HorizontalView from './horizontalView'

export default {
  mixins: [],
  components: {
    HorizontalView,
    VerticalView
  },
  props: {
    data: {
      type: Array,
      default: () => {
        return []
      }
    },
    mode: {}
  },
  computed: {
    componentId() {
      if (this.mode === 'vertical') {
        return 'verticalView'
      } else {
        return 'horizontalView'
      }
    }
  },
  data() {
    return {}
  },
  methods: {},
  mounted() {},
  created() {}
}
</script>

<style lang="scss" scoped></style>
